cmake_minimum_required(VERSION 3.5...3.20)

project(template LANGUAGES C CXX VERSION 0.0.1)

include(cmake/SparkEnvConfig.cmake)
include(cmake/SparkMacrosConfig.cmake)
include(cmake/SparkFindLibraries.cmake)
include(cmake/SparkFindQt5Config.cmake)
include(cmake/SparkFindQt6Config.cmake)

include_directories(plugin)
add_compile_options(-g)

# 资源文件路径
set(QRC_SOURCES "")

spark_add_executable_path(${PROJECT_NAME} src
    ${QRC_SOURCES}
)
target_link_qt5(${PROJECT_NAME})


add_subdirectory(plugin/c)
add_subdirectory(plugin/cpp)
add_subdirectory(plugin/go)
add_subdirectory(plugin/py)
add_subdirectory(plugin/qt)
add_subdirectory(plugin/rust)
add_subdirectory(plugin/rust_cpp_style)

add_subdirectory(wrapper)

include(cmake/SparkBuildGraphviz.cmake)